From 985bf498a5c9fadbdc0a7a090725de70fca62264 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 18 Mar 2008 11:40:30 +0000 Subject: [PATCH] minios: avoid putting trailing \0 in xenstore xenstore expects to get the exact amount of data, without the trailing \0. Signed-off-by: Samuel Thibault --- extras/mini-os/xenbus/xenbus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/mini-os/xenbus/xenbus.c b/extras/mini-os/xenbus/xenbus.c index 147cef1331..a6475a960d 100644 --- a/extras/mini-os/xenbus/xenbus.c +++ b/extras/mini-os/xenbus/xenbus.c @@ -453,7 +453,7 @@ char *xenbus_write(xenbus_transaction_t xbt, const char *path, const char *value { struct write_req req[] = { {path, strlen(path) + 1}, - {value, strlen(value) + 1}, + {value, strlen(value)}, }; struct xsd_sockmsg *rep; rep = xenbus_msg_reply(XS_WRITE, xbt, req, ARRAY_SIZE(req)); -- 2.30.2